package com.godofball.medtrack.pojo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 库存信息
 *
 */
@Data
public class Warehouse implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    /**
     * 药品编号
     */
    private Long drugId;
    /**
     * 进货单编号
     */
    private Long purchaseId;

    private Long purchaseDetailId;

    private Long manufacturerId;

    /**
     * 药品库存
     */
    private Integer stock;

    private Integer status;

    private Integer sort;

    /**
     * 销售单价
     */
    private BigDecimal salePrice;
    /**
     * 销售情况:1->起售，0->停售
     */


    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
